package com.ruoyi.emergencyplan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.emergencyplan.mapper.EpDrillRecordMapper;
import com.ruoyi.emergencyplan.domain.EpDrillRecord;
import com.ruoyi.emergencyplan.service.IEpDrillRecordService;

/**
 * 应急预案——应急演练记录Service业务层处理
 * 
 * @author hcc
 * @date 2023-12-17
 */
@Service
public class EpDrillRecordServiceImpl implements IEpDrillRecordService 
{
    @Autowired
    private EpDrillRecordMapper epDrillRecordMapper;

    /**
     * 查询应急预案——应急演练记录
     * 
     * @param id 应急预案——应急演练记录主键
     * @return 应急预案——应急演练记录
     */
    @Override
    public EpDrillRecord selectEpDrillRecordById(String id)
    {
        return epDrillRecordMapper.selectEpDrillRecordById(id);
    }

    /**
     * 查询应急预案——应急演练记录列表
     * 
     * @param epDrillRecord 应急预案——应急演练记录
     * @return 应急预案——应急演练记录
     */
    @Override
    public List<EpDrillRecord> selectEpDrillRecordList(EpDrillRecord epDrillRecord)
    {
        return epDrillRecordMapper.selectEpDrillRecordList(epDrillRecord);
    }

    /**
     * 新增应急预案——应急演练记录
     * 
     * @param epDrillRecord 应急预案——应急演练记录
     * @return 结果
     */
    @Override
    public int insertEpDrillRecord(EpDrillRecord epDrillRecord)
    {
        return epDrillRecordMapper.insertEpDrillRecord(epDrillRecord);
    }

    /**
     * 修改应急预案——应急演练记录
     * 
     * @param epDrillRecord 应急预案——应急演练记录
     * @return 结果
     */
    @Override
    public int updateEpDrillRecord(EpDrillRecord epDrillRecord)
    {
        return epDrillRecordMapper.updateEpDrillRecord(epDrillRecord);
    }

    /**
     * 批量删除应急预案——应急演练记录
     * 
     * @param ids 需要删除的应急预案——应急演练记录主键
     * @return 结果
     */
    @Override
    public int deleteEpDrillRecordByIds(String[] ids)
    {
        return epDrillRecordMapper.deleteEpDrillRecordByIds(ids);
    }

    /**
     * 删除应急预案——应急演练记录信息
     * 
     * @param id 应急预案——应急演练记录主键
     * @return 结果
     */
    @Override
    public int deleteEpDrillRecordById(String id)
    {
        return epDrillRecordMapper.deleteEpDrillRecordById(id);
    }
}
